@echo off

setlocal 
%~d0
cd "%~dp0"

Set servername=".\SQLEXPRESS"

echo.
echo ========= Setting database permissions ========= 
SqlCmd -S %servername% -E -d GEXCOMER -i sql\SetupIISPermissionsInDatabases.sql
SqlCmd -S %servername% -E -d ASPNETProvidersDb -i sql\SetupIISPermissionsInDatabases.sql
SqlCmd -S %servername% -E -d ElmahDb -i sql\SetupIISPermissionsInDatabases.sql
SqlCmd -S %servername% -E -d MobileTrackDb -i sql\SetupIISPermissionsInDatabases.sql

echo.
PAUSE